package fr.afcepf.qualimetrie;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.annotation.sql.DataSourceDefinition;
import javax.ejb.Stateless;
@Stateless
@DataSourceDefinition(name="java:app/jdbc/test",  
databaseName="mini-site",  
password="",  
user="root",  
className="com.mysql.jdbc.Driver",  
portNumber=3306,  
serverName="localhost") 
public class MinisiteDataImpl implements IMinisiteData {
	@PersistenceContext(unitName="mini-site-data")
	EntityManager em;
	public boolean addUser(User user) {
		em.persist(user);
		return false;
	}

	public User connectUser(String mail, String password) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<User> searchByCity(String city) {
		// TODO Auto-generated method stub
		return null;
	}

}
